{% extends 'base.html' %}
{% load static %}
{% block 'title' %}修改地址{% endblock%}
{% block 'header-title' %}修改地址{% endblock%}
{% block 'content' %}
<div class="container">
    <section>
        <h3>当前地址</h3>
        <ul class="list-group list-group-flush">
            <li class="list-group-item">地区：{{address.location}}</li>
            <li class="list-group-item">详细地址：{{address.detail}}</li>
        </ul>
    </section>
    <hr>
    <section>
        {% include 'message.html' %}
        <form method="post" class="ml-3">
            {% csrf_token %}
            <div class="form-group row">
                <div class="input-group mb-2">
                    <div class="input-group-prepend">
                        <div class="input-group-text">修改地址</div>
                    </div>
                    {% include 'address-widget-location.html' %}
                    <input name="detail" class="form-control" type="text" value="{{address.detail}}" required>
                    <button class="btn  btn-success" type="submit">保存</button>
                </div>
            </div>
        </form>
    </section>
</div>
{% endblock %}